package com.common.exception.enums;

public enum ConstantExceptionEnums {
    SMS_SEND_FAILURE(4003, "短信发送当日累计次数超限，请稍后重试！"),
    SMS_FAILURE(4004, "网络不给力，短信发送失败！"),
    USER_STATUS_DISABLED(4009, "该用户未添加或被禁用，请联系物业！"),
    PHONE_NUMBER_REPEAT(4010, "该手机号码已注册！请先解除绑定！"),
    USER_MOBILE_BIND(4012,"手机号码已绑定，请先解除绑定！"),
    NULL_EXCEPTION(4015, "参数为空！"),
    FAILURE(4016, "网络不给力，操作失败！"),
    CHECK_IN_EXCEPTION(5001, "已完成今天签到！"),
    ACTIVITY_EXCEPTION(5002, "活动尚未开始!"),
    RULE_ACTIVITY_EXCEPTION(5003, "活动规则异常！请联系管理员"),
    USER_NOT_EXIST(5004, "该用户不存在！"),
    USER_NOT_BOUND(5005, "尚未与微信绑定，请先绑定！"),
    LOGIN_METHOD_EXCEPTION(5006,"登录方式异常！请重新登录"),
    SMS_CODE_FREQUENT(40001, "验证码发送过于频繁");

    public int code;
    public String message;

    ConstantExceptionEnums(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
